package dimension.starry.constants;

import dimension.starry.item.typeInterface.WeaponType.WeaponType;

public class WeaponExp {

    public static final int[] needExp3 = new int[200];
    public static final int[] needExp4 = new int[200];
    public static final int[] needExp5 = new int[200];

    static {
        needExp3[1] = 40;
        needExp3[2] = 60;
        needExp3[3] = 100;
        needExp3[4] = 160;
        needExp3[5] = 220;
        needExp3[6] = 300;
        needExp3[7] = 380;
        needExp3[8] = 480;
        needExp3[9] = 580;
        needExp3[10] = 700;
        needExp3[11] = 820;
        needExp3[12] = 950;
        needExp3[13] = 1090;
        needExp3[14] = 1240;
        needExp3[15] = 1390;
        needExp3[16] = 1560;
        needExp3[17] = 1730;
        needExp3[18] = 1910;
        needExp3[19] = 2090;
        needExp3[20] = 2170;
        needExp3[21] = 2260;
        needExp3[22] = 2350;
        needExp3[23] = 2430;
        needExp3[24] = 2520;
        needExp3[25] = 2620;
        needExp3[26] = 2710;
        needExp3[27] = 2800;
        needExp3[28] = 2900;
        needExp3[29] = 2990;
        needExp3[30] = 3100;
        needExp3[31] = 3200;
        needExp3[32] = 3300;
        needExp3[33] = 3400;
        needExp3[34] = 3510;
        needExp3[35] = 3620;
        needExp3[36] = 3730;
        needExp3[37] = 3830;
        needExp3[38] = 3950;
        needExp3[39] = 4060;
        needExp3[40] = 4170;
        needExp3[41] = 4580;
        needExp3[42] = 4840;
        needExp3[43] = 5110;
        needExp3[44] = 5380;
        needExp3[45] = 5660;
        needExp3[46] = 5950;
        needExp3[47] = 6230;
        needExp3[48] = 6530;
        needExp3[49] = 6830;
        needExp3[50] = 7140;
        needExp3[51] = 7450;
        needExp3[52] = 7760;
        needExp3[53] = 8090;
        needExp3[54] = 8410;
        needExp3[55] = 8750;
        needExp3[56] = 9080;
        needExp3[57] = 9430;
        needExp3[58] = 9770;
        needExp3[59] = 10130;
        needExp3[60] = 10480;
        needExp3[61] = 10970;
        needExp3[62] = 11560;
        needExp3[63] = 12160;
        needExp3[64] = 12760;
        needExp3[65] = 13370;
        needExp3[66] = 13990;
        needExp3[67] = 14620;
        needExp3[68] = 15260;
        needExp3[69] = 15910;
        needExp3[70] = 16570;
        needExp3[71] = 18490;
        needExp3[72] = 20230;
        needExp3[73] = 22000;
        needExp3[74] = 23790;
        needExp3[75] = 25610;
        needExp3[76] = 27450;
        needExp3[77] = 29320;
        needExp3[78] = 31220;
        needExp3[79] = 33140;
        needExp3[80] = 35220;
    }

    public static int getNeedExp(WeaponType weaponType, int currentLevel) {
        if (currentLevel >= 80) {
            return 99999999;
        } else if (weaponType.getQuality().equals(ItemQuality.EXCELLENT)) {
            return needExp3[currentLevel + 1];
        }
        return 99999999;
    }

}
